<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <fmt:setBundle basename="ApplicationMessage" />
  <fmt:setLocale value="zh_CN" />

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  <link href="${ctx.resource}/css/select2.css" rel="stylesheet">
  <link href="${ctx.resource}/css/select2-bootstrap.css" rel="stylesheet">
  <title>银企直联 - 租房宝金融管理平台</title>
  
</head>
<body>

  <%@ include file="/WEB-INF/include/header.jsp"%>
  
  <div class="web-g-main">
        <%@ include file="/WEB-INF/include/aside.jsp"%>

        <div class="content">
            <header class="header clearfix">
                <h3 class="pull-left">银企直联配置</h3>
            </header>
            <c:if test="${not empty infoMessage}">
                <div class="alert alert-success alert-dismissable alert-fade top-margin-10 text-align-center">
                  <button type="button" class="close" data-dismiss="alert">&times;</button>
                  <i class="glyphicon glyphicon-info-sign"></i>&nbsp;&nbsp;
                  <fmt:message key="${infoMessage}" />
                </div>
            </c:if>
        <div class="col-xs-10 earth-panel-layout-right">

          <c:if test="${not empty infoMessage}">
            <div class="alert alert-success alert-dismissable alert-fade top-margin-10 text-align-center">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <i class="glyphicon glyphicon-info-sign"></i>&nbsp;&nbsp;
              <fmt:message key="${infoMessage}" />
            </div>
          </c:if>
          
          <div class="col-md-12 top-margin-20 form-horizontal">
            <div class="earth-breadcrumb-wrapper">
              <ul class="nav nav-pills earth-breadcrumb-nav">
                <li class="active"><a href="javascript: void(0)" data-toggle="tab" data-target="#app-payment-config" data-loaded="true">基本配置</a></li>
              </ul>
            </div>
            
            <div class="tab-content">
            
              <div class="table-area">
              
                <table class="data-list">
                  <thead>
                    <tr>
                      <th>参数名称</th>
                      <th>参数值</th>
                    </tr>
                  </thead>
                  <tbody>
                     <tr>
                       <td>hostIp</td>
                       <td>${configParams.hostIp}</td>
                     </tr>
                     <tr>
                       <td>httpPort</td>
                       <td>${configParams.httpPort}</td>
                     </tr>
                     <tr>
                       <td>signPort</td>
                       <td>${configParams.signPort}</td>
                     </tr>
                  </tbody>
                </table>       
                
              </div>
              
            </div>
            
          </div>
          
          <div class="col-md-12 top-margin-20 form-horizontal">
            <div class="earth-breadcrumb-wrapper">
              <ul class="nav nav-pills earth-breadcrumb-nav">
                <li class="active"><a href="javascript: void(0)" data-toggle="tab" data-target="#app-service-config" data-loaded="true">账户信息</a></li>
              </ul>
            </div>
            
            <div class="tab-content">
            
              <div class="tab-content">
              
                <table class="data-list">
                  <thead>
                    <tr>
                      <th>参数名称</th>
                      <th>参数值</th>
                    </tr>
                  </thead>
                  <tbody>
                     <tr>
                       <td>租房宝账户名</td>
                       <td>${configParams.ZFBAccName}</td>
                     </tr>
                     <tr>
                      <td>租房宝帐号</td>
                       <td>${configParams.ZFBAccNo}</td>
                     </tr>
                     <tr>
                      <td>鼎程回款账户名</td>
                       <td>${configParams.DCAccName}</td>
                     </tr>
                     <tr>
                      <td>鼎程回款帐号</td>
                       <td>${configParams.DCAccNo}</td>
                     </tr>
                     <tr>
                      <td>鼎程风险保证金账户名</td>
                       <td>${configParams.DCRiskAccName}</td>
                     </tr>
                     <tr>
                      <td>鼎程风险保证金帐号</td>
                       <td>${configParams.DCRiskAccNo}</td>
                     </tr>
                  </tbody>
                </table>       
                
              </div>
              
            </div>
            
          </div>

           <div class="col-md-12 top-margin-20 form-horizontal">
            <div class="earth-breadcrumb-wrapper">
              <ul class="nav nav-pills earth-breadcrumb-nav">
                <li class="active"><a href="javascript: void(0)" data-toggle="tab" data-target="#app-payment-config" data-loaded="true">AppAccount</a></li>
              </ul>
            </div>
            
            <div class="tab-content">
            
              <div class="tab-content">
              
                <table class="data-list">
                  <thead>
                    <tr>
                      <th>app</th>
                      <th>账户名</th>
                      <th>帐号</th>
                    </tr>
                  </thead>
                  <tbody>
                    <c:forEach var="appAccount" items="${appAccountList}" varStatus="status">
                      <tr>
                        <td>${appAccount.name}</td>
                        <%-- <td>${appAccount.app.company.accountName}</td>
                        <td>${appAccount.app.company.accountNo}</td> --%>
                        <td>${data.getAccountOfAppForCollectRents(appAccount.app.company).accountName }</td>
                        <td>${data.getAccountOfAppForCollectRents(appAccount.app.company).accountNo }</td>
                      </tr>
                    </c:forEach>
                  </tbody>
                </table>       
                
              </div>
              
            </div>
            
          </div>
        </div>

        </div>
    </div>

  <%@ include file="/WEB-INF/include/script.jsp"%>
  <script src="${ctx.resource}/js/bootstrap-switch.min.js"></script>
  <script src="${ctx.resource}/js/bootstrap-modal-trigger.js"></script>
  <script src="${ctx.resource}/js/bootstrap.validate.js"></script>
  <script src="${ctx.resource}/js/bootstrap.validate.en.js"></script>
  <script src="${ctx.resource}/js/bootstrap-alert-fade-trigger.js"></script>
  <script src="${ctx.resource}/js/earth-preupload.js"></script>
  <script src="${ctx.resource}/js/select2.min.js"></script>
  <script src="${ctx.resource}/js/select2_locale_zh-CN.js"></script>


</body>
</html>
